﻿using System.Web.Mvc;

namespace CodeContribBlog.Web.Mvc.Controllers
{
	public class SearchController : BlogController
	{
		public ActionResult GoogleCse()
		{
			return View("GoogleCse");
		}

		public ActionResult Index(string q)
		{
			if (string.IsNullOrEmpty(q))
			{
				return RedirectToRoute("BlogHome");
			}

			return View("Index", (object)q);
		}
	}
}